from django.contrib import admin
from contents.models import Content, ContentCategory


# Register your models here.


@admin.register(ContentCategory)
class ContentsAdmin(admin.ModelAdmin):
    # 显示列表
    list_display = ['id', 'name', 'key']


@admin.register(Content)
class ContentsAdmin(admin.ModelAdmin):
    # 显示列表
    list_display = ['id', 'category', 'title', 'url', 'image', 'text', 'sequence', 'status']
